home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TPWENG
/
TBLUNLCK.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
583b
|
29 lines
program TblUnlck;
uses PXEngine, WinCrt;
const TableName = 'Table';
NetDir = '';
NetType = NotOnNet ;
var PxErr: Integer;
TblHandle: TableHandle;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName,TblHandle, 0, False));
PX(PXNetTblLock(TblHandle, FL));
(* Remove full-lock from a table *)
PxErr := PXNetTblUnlock(TblHandle, FL);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr));
PX(PXTblClose(TblHandle));
PX(PXExit);
end.